<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>咨询详情 - 购车咨询</title>
    <link rel="stylesheet" th:href="@{/css/style.css}" />
</head>
<body>
<div class="container">
    <h1>咨询详情</h1>
    <p>
        <strong>预算：</strong><span th:text="${c.budgetMin}"></span> - <span th:text="${c.budgetMax}"></span>
        | <strong>车型：</strong><span th:text="${c.bodyType}"></span>
        | <strong>场景：</strong><span th:text="${c.scenes}"></span>
        | <strong>燃料：</strong><span th:text="${c.fuelType}"></span>
        | <strong>品牌：</strong><span th:text="${c.brandPreference}"></span>
    </p>
    <hr/>
    <h3>咨询建议（多模型汇总）</h3>
    <pre style="white-space: pre-wrap;">[[${c.resultText}]]</pre>

    <div class="actions">
        <a href="/consult/history" class="btn">返回记录</a>
        <a href="/dashboard" class="btn">返回控制台</a>
    </div>

    <hr/>
    <h3>提交反馈</h3>
    <form th:action="@{'/consult/' + ${c.id} + '/feedback'}" method="post">
        <label>评分：</label>
        <select name="rating">
            <option value="5">5</option>
            <option value="4">4</option>
            <option value="3">3</option>
            <option value="2">2</option>
            <option value="1">1</option>
        </select>
        <label>点评：</label>
        <input type="text" name="comment" style="width:60%"/>
        <button class="btn" type="submit">提交反馈（+2积分）</button>
    </form>

    <div class="hint">
        <p>隐私与安全：系统仅保存咨询参数与生成建议，您的密码经过加密存储。</p>
    </div>
</div>
</body>
</html>